/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.crab.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.crab.entity.MsgHistroy;
import com.kaaction.modules.crab.dao.MsgHistroyDao;

/**
 * 短信历史Service
 * @author huanghaiming
 * @version 2017-07-24
 */
@Service
@Transactional(readOnly = true)
public class MsgHistroyService extends CrudService<MsgHistroyDao, MsgHistroy> {

	public MsgHistroy get(String id) {
		return super.get(id);
	}
	
	public List<MsgHistroy> findList(MsgHistroy msgHistroy) {
		return super.findList(msgHistroy);
	}
	
	public Page<MsgHistroy> findPage(Page<MsgHistroy> page, MsgHistroy msgHistroy) {
		return super.findPage(page, msgHistroy);
	}
	
	@Transactional(readOnly = false)
	public void save(MsgHistroy msgHistroy) {
		super.save(msgHistroy);
	}
	
	@Transactional(readOnly = false)
	public void delete(MsgHistroy msgHistroy) {
		super.delete(msgHistroy);
	}

	public List<MsgHistroy> findMsgHistroy(MsgHistroy msgHistroy) {
		return super.findList(msgHistroy);
	}

	@Transactional(readOnly = false)
	public void insert(MsgHistroy msgHistroy) {
		msgHistroy.preInsert();
		super.dao.insert(msgHistroy);
	}

	@Transactional(readOnly = false)
	public void update(MsgHistroy msgHistroy) {
		super.dao.update(msgHistroy);
		
	}
	
}